package com.maple.admin.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.maple.admin.domain.entity.Like;
import com.maple.admin.mapper.LikeMapper;
import com.maple.admin.service.LikeService;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.function.Function;

@Service
public class LikeServiceImpl extends ServiceImpl<LikeMapper,Like> implements LikeService {

    @Override
    public List<Like> getListByCid(Integer cid) {
        QueryWrapper wrapper = new QueryWrapper<>();
        wrapper.eq("cid",cid);

        return baseMapper.selectList(wrapper);
    }
}
